import 'package:fate_blind_box/chat_pages/pay_manager/pay_code_verify/pay_code_dialog.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'state.dart';

class AccountsLogic extends GetxController {
  final AccountsState state = AccountsState();

  @override
  void onInit() {
    super.onInit();
    if (Get.arguments != null) {
      state.nickName.value = Get.arguments['nickName'] ?? '';
      state.avatarUrl.value = Get.arguments['avatarUrl'] ?? '';
    }
  }

  /// 去转账
  transferMoney() async {
    // Get.toNamed(PageRouteNames.paymentSetting);
    var result = await showModalBottomSheet<bool>(
      context: Get.context!,
      isScrollControlled: true,
      builder: (BuildContext context) {
        return const PayCodeDialog();
      },
    );
    if (result != null && result) {}
  }
}
